/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function isLoad(){
    alert("asd");
}

function selectCheckbox(){
    //alert("aasd");
    items = document.getElementsByName("delcheck");
    for (i = 0; i < items.length; i++) {
        if(items[i].checked)
            {
                $('#BTN_DELETE').removeAttr("disabled");
                return;
            }
    }
    $('#BTN_DELETE').attr("disabled", "disabled");
}

function deleteRows(){
    items = document.getElementsByName("delcheck");
    for (i = 0; i < items.length; i++) {
        if(items[i].checked)
            {
                $('#' + items[i].value).fadeOut('slow');
            }
    }
    if(items.length > 0 )
        {
            $('#doDelete').attr('value', true);
        }
    $('#BTN_DELETE').attr("disabled", "disabled");        
}
